package com.example.myapplication2048;

import com.example.myapplication2048.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.Window;
import ohos.global.resource.solidxml.Theme;


public class MainAbility extends Ability {

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        Window window = getWindow();
        window.setTransparent(true);//开启 透明功能
        window.setStatusBarColor(Color.rgb(25,188,255));
        window.setStatusBarVisibility(0);//0隐藏 1 显示 导航状态条问题
        window.setNavigationBarColor(Color.rgb(25,188,255));
        super.setMainRoute(MainAbilitySlice.class.getName());
//        addActionRoute();
    }
}
